-
-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fallback to english for knowledge panels #6804
Conversation
@@ -407,7 +407,7 @@ sub process_template($$$) { | |||
|
|||
# Display one taxonomy entry in the target language | |||
$template_data_ref->{display_taxonomy_tag} = sub ($$) { | |||
return display_taxonomy_tag($lc, $_[0], $_[1]); | |||
return display_taxonomy_tag_name($lc, $_[0], $_[1]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ok I guess, I don't think we have templates where we do want the tag with the leading language code. We might in the future though, e.g. if we want to use panels to link to a list of products with a specific tag.
Another option is to change display_taxonomy_tag to display_taxonomy_tag_name in all templates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change to have a specific display_taxonomy_tag_name available in templates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've change that, to instead have two function and use appropriate one in knowledge panels.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
fixes #6771